package com.shxy.rlzy.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author tanhao
 * @since 2022-03-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("emp_salary_task")
public class SalaryTask extends BaseEntity {
    // statu:1 初始化 2 进行中 3 已结束

    private static final long serialVersionUID = 1L;

    private String name;

    private LocalDateTime endTime;

    @TableField(exist = false)
    private int total;          // 项目总数
    @TableField(exist = false)
    private int completed;      // 已完成数量

    @TableField(exist = false)
    private List<SalaryTaskDepart> taskDeparts;
}
